package com.hk.webapp;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

@MapperScan({"com.hk.webapp.dao","com.hk.webapp.custom"})
@ServletComponentScan
@SpringBootApplication
public class hkApplication {

    @Bean
    public RestTemplate initresttemplate(){
        RestTemplate resttemplate = new RestTemplate();
        resttemplate.getMessageConverters().add(new Image2HttpMessageConverter());
        return resttemplate;
    }
    //启动
    public static void main(String[] args) {
        SpringApplication.run(hkApplication.class, args);
    }


}
